package com.itheima.service;

import com.itheima.dao.SunDao;
import com.itheima.dao.UserDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("sunService")
public class SunServiceImpl implements SunService{
    //使用@Resource注解注入UserDao
    @Resource(name="sunDao")
    private SunDao sunDao;
    public void light() {
        this.sunDao.light();
        System.out.println("执行SunServiceImpl.light()");
    }
}
